<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/form.css"/>
		<script src="/qrcode/jquery2.1.4.js"></script>
		<script src="/layer/layer.js"></script>

	</head>
	<body>
		<div class="main">
			<h3>用户注册</h3>
			<div class="login-form">
				<p>
					<input id="userName" placeholder="请输入账号" class="username input">
				</p>
				<p>
					<input id="userPhone" placeholder="请输入手机号" class="username input">
				</p>
				<p>
					<input id="numberId" placeholder="请输入身份证号" class="username input">
				</p>
				<p>
					<input id="password" placeholder="请输入密码" class="password input">
				</p>
				<p>
					<input placeholder="请确认密码" class="password input">
				</p>
				<p>
					<input id="addGo" type='button' value="点击注册" class="btn">
				</p>
				<p>
					<input id="login" type='button' value="已有账号?点击登录" class="btn">
				</p>
			</div>
			
		</div>
	<script>
		$(function () {
			$("#addGo").click(function () {
				var windowId = layer.load();
				var name = $("#userName").val();
				var password = $("#password").val();
				var userPhone = $("#userPhone").val();
				var numberId = $("#numberId").val();
				$.getJSON("/vx/addGo.do",{name:name,password:password,userPhone:userPhone,numberId:numberId},function (data) {
					layer.close(windowId);
					if(data.status==0){
						layer.msg(data.result);
						location.href = "login.html";
					}
				});

			});

			$("#login").click(function () {
				location.href = "login.html";
			})
		})
	</script>
	</body>

</html>
